﻿using System;
using UnityEngine;

// Token: 0x020003AF RID: 943
public class MoveableColorCustomUI : MonoBehaviour
{
	// Token: 0x17000246 RID: 582
	// (get) Token: 0x06001779 RID: 6009 RVA: 0x0009C100 File Offset: 0x0009A300
	public bool isShow
	{
		get
		{
			return this.moveable.isActiveAndEnabled;
		}
	}

	// Token: 0x17000247 RID: 583
	// (get) Token: 0x0600177A RID: 6010 RVA: 0x0009C110 File Offset: 0x0009A310
	public bool isOpen
	{
		get
		{
			return this.moveable.State == MoveableUI.STATE.OPEN;
		}
	}

	// Token: 0x17000248 RID: 584
	// (get) Token: 0x0600177B RID: 6011 RVA: 0x0009C120 File Offset: 0x0009A320
	// (set) Token: 0x0600177C RID: 6012 RVA: 0x0009C130 File Offset: 0x0009A330
	public Color color
	{
		get
		{
			return this.colorPicker.EditColor;
		}
		set
		{
			this.colorPicker.EditColor = value;
		}
	}

	// Token: 0x17000249 RID: 585
	// (get) Token: 0x0600177D RID: 6013 RVA: 0x0009C140 File Offset: 0x0009A340
	// (set) Token: 0x0600177E RID: 6014 RVA: 0x0009C148 File Offset: 0x0009A348
	public ColorChangeButton openUI { get; private set; }

	// Token: 0x0600177F RID: 6015 RVA: 0x0009C154 File Offset: 0x0009A354
	public void SetTitle(string str)
	{
		this.moveable.SetTitle(str);
	}

	// Token: 0x06001780 RID: 6016 RVA: 0x0009C164 File Offset: 0x0009A364
	public void Open(ColorChangeButton ui)
	{
		this.openUI = ui;
		this.moveable.Open();
	}

	// Token: 0x06001781 RID: 6017 RVA: 0x0009C178 File Offset: 0x0009A378
	public void Open(ColorChangeButton ui, string title, Color color, bool hasAlpha, Action<Color> act)
	{
		this.openUI = ui;
		this.moveable.SetTitle(title);
		this.colorPicker.Setup(color, hasAlpha, act);
		this.moveable.Open();
		MoveableThumbnailSelectUI[] array = UnityEngine.Object.FindObjectsOfType<MoveableThumbnailSelectUI>();
		for (int i = 0; i < array.Length; i++)
		{
			array[i].Close();
		}
	}

	// Token: 0x06001782 RID: 6018 RVA: 0x0009C1D8 File Offset: 0x0009A3D8
	public void Close()
	{
		this.moveable.Close();
	}

	// Token: 0x04001B24 RID: 6948
	[SerializeField]
	private MoveableUI moveable;

	// Token: 0x04001B25 RID: 6949
	[SerializeField]
	private ColorPicker colorPicker;
}
